package com.ssyt.ec.sys.entity;

import java.util.Date;

import com.ssyt.ec.common.util.DateUtil;

/**
 * 班级实体封装
 * @author LZJ
 *
 */
public class ClassManagerEntity {

	private int id;
	private String name;
	private int courseId;
	private int operateUserId;
	private Date operateTime;
	private int state;
	private  String memo;
	//扩展字段
	private String course__name;
	
	public int getId() {
		return id;
	}
	
	public void setId(int id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public int getCourseId() {
		return courseId;
	}
	
	public void setCourseId(int courseId) {
		this.courseId = courseId;
	}
	
	public int getOperateUserId() {
		return operateUserId;
	}
	
	public void setOperateUserId(int operateUserId) {
		this.operateUserId = operateUserId;
	}
	
	public String getOperateTime() {
		return DateUtil.format(operateTime, "yyyy-MM-dd");
	}
	
	public void setOperateTime(Date operateTime) {
		this.operateTime = operateTime;
	}
	
	public int getState() {
		return state;
	}
	
	public String getStateStr() {
		if (state == 1) {
			return "启用";
		} else if (state == 2) {
			return "禁用";
		} else {
			return "Unknow";
		}
	}
	public void setState(int state) {
		this.state = state;
	}
	
	public String getMemo() {
		return memo;
	}
	
	public void setMemo(String memo) {
		this.memo = memo;
	}
	
	public String getCourse__name() {
		return course__name;
	}
	
	public void setCourse__name(String course__name) {
		this.course__name = course__name;
	}

}
